package com.github.pig.nideshop.controller.user;


import com.github.pig.common.util.ZyResult;
import com.github.pig.nideshop.entity.NideshopCoupon;
import com.github.pig.nideshop.service.INideshopCouponService;
import com.github.pig.nideshop.service.INideshopUserCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author J神
 * @since 2018-06-11
 */
@RestController
@RequestMapping("/coupons")
public class NideshopCouponController {
    @Autowired
    private INideshopCouponService nideshopCouponService;
    @Autowired
    private INideshopUserCouponService iNideshopUserCouponService;
    /**
     * 优惠券列表
     */
    @GetMapping
    public ZyResult coupons(NideshopCoupon nideshopCoupon){
        return ZyResult.ok();
    }
    /**
     *  领取优惠券
     */
    public ZyResult  add(NideshopCoupon nideshopCoupon){
        return ZyResult.ok();
    }
}

